package cn.wolfcode.car.business.query;

import cn.wolfcode.car.common.base.query.QueryObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class StockBillQuery extends QueryObject {

    /** 类型, 0 入库, 1 出库*/
    private Integer type;

    /** 仓库id*/
    private String storeId;

    /** 0 正常, -1 作废*/
    private Integer status;

    /** 出入库时间查询  起始时间*/
    @JsonFormat(pattern ="yyyy-MM-dd" ,timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    private Date startTime;

    @JsonFormat(pattern ="yyyy-MM-dd" ,timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    private Date endTime;
}
